﻿<%@ Page Language="C#" MasterPageFile="~/Member/MemMaster.master" AutoEventWireup="true"
    CodeBehind="InvoicesList.aspx.cs" Inherits="PayRoller.Member.InvoicesList" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderTitle" Runat="Server">
   Invoices & Statements
</asp:Content>
<%@ Register Assembly="Huayou.Common" Namespace="Huayou.UI.WebControls" TagPrefix="cc1" %>
<%@ Register Src="../UControls/TXTFormatDate.ascx" TagName="TXTFormatDate" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="620" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
            <td align="left" style="height: 22px">
            </td>
        </tr>
        <tr>
            <td>
                This webpage lists every tax invoice that has been sent to you by Golden Bridge
                Payroller. To view an invoice click on one of the ' Detail ' links below.
            </td>
        </tr>
        <tr>
            <td>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="110" style="height: 24px">
                            Invoice Preiod:
                        </td>
                        <td style="width: 100px; height: 24px" align="left">
                            <uc1:TXTFormatDate ID="txtInvoiceDateBegin" Width="70" runat="server" />
                        </td>
                        <td style="height: 22px">
                            To:
                        </td>
                        <td style="height: 22px">
                            <uc1:TXTFormatDate ID="txtInvoiceDateTo" Width="70" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td width="100" style="height: 24px">
                            Invoice ID:
                        </td>
                        <td style="height: 24px">
                            <asp:TextBox ID="txtInvoiceID" runat="server" Width="160px"></asp:TextBox>
                        </td>
                        <td colspan="2" style="height: 22px" align="center">
                            <asp:Button ID="bnSearch" runat="server" Text="Search" OnClick="bnSearch_Click" CssClass="submitBtn" />
                        </td>
                        <td style="height: 22px">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr class="emptyRow"></tr>
        <tr>
            <td height="22">
                <cc1:DataGridTable CellPadding="1" CellSpacing="1" BackColor="#cccccc" Width="100%"
                    ID="dgdList" runat="server" BorderWidth="0px" BorderStyle="None" IsAllowPaging="True"
                    PageSize="12" OnDataBinding="dgdList_DataBinding" OnPageIndexChanged="dgdList_PageIndexChanged"
                    AutoGenerateColumns="False" CssClass="tableGrid" MaxRecord="0" PageCSS="scrollButton"
                    AllowPaging="True" OnItemDataBound="dgdList_ItemDataBound">
                    <PagerStyle CssClass="gridPager" BackColor="White" />
                    <SelectedItemStyle CssClass="gridSelectedItem" />
                    <ItemStyle Height="25px" CssClass="gridItem" BackColor="White"></ItemStyle>
                    <HeaderStyle Height="22px" CssClass="right-ta-ti01" Font-Bold="True"></HeaderStyle>
                    <AlternatingItemStyle CssClass="gridAltItem" />
                    <FooterStyle CssClass="gridFooter" BackColor="White" />
                    <EditItemStyle CssClass="gridEditItem" />
                    <Columns>
                        <asp:BoundColumn DataField="Sid" HeaderText="Invoice No"></asp:BoundColumn>
                        <asp:BoundColumn DataField="InvoiceDate" HeaderText="Invoice due" DataFormatString="{0:dd/MM/yyyy}">
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="InvoiceAmount" HeaderText="Invoice amount"></asp:BoundColumn>
                        <asp:BoundColumn DataField="ReceiveAmount" HeaderText="Amount paid"></asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="Detail">
                            <ItemTemplate>
                                <a href="InvoicesDetail.aspx?Guid=<%# Eval("Guid")%>&OrgSid=<%# Eval("OrgSid")%>"
                                    target="_blank">Detail</a>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                    </Columns>
                </cc1:DataGridTable>
            </td>
        </tr>
        <tr>
            <td align="left">
                <asp:TextBox ID="txtParamstr" runat="server" Visible="False" Width="48px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td height="22">
                <asp:Label ID="lblTip" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
    <script type="text/javascript">
        $(document).ready(function () {
            $("a[href='InvoicesList.aspx']").addClass("active");
        })
    </script>
</asp:Content>
